import React from 'react';
import { footer } from './footer.less';

import { useAppSelector } from '@store/hooks';
import { getOption } from '@store/reducers/footerSlice';

function Foot(props: any) {
    const option = useAppSelector(getOption);
    let { hidden } = option;
    if (hidden) {
        return <div style={{ width: '0', height: 0, display: 'none' }}></div>;
    }
    return <div className={footer}>footer</div>;
}

export default Foot;
